package com.gjy.nwpufindseats.baseData;
import java.util.ArrayList;

public class AllGrade {
		private String term;
		private ArrayList<String> gradeList;
		
		public AllGrade(String term,ArrayList<String>gradeList)
		{
			this.term = term;
			this.gradeList = gradeList;
		}
		
		public String getTerm() {
			return term;
		}

		public void setTerm(String term) {
			this.term = term;
		}

		public ArrayList<String> getGradeList() {
			return gradeList;
		}

		public void setGradeList(ArrayList<String> gradeList) {
			this.gradeList = gradeList;
		}
	 
						
		/** 下面实现的是对象的序列化*/  
		/*
	    public int describeContents()   
	    {  
	        return 0;  
	    }  
	      
	    public void writeToParcel(Parcel dest, int flags)  
	    {  
	        dest.writeString(term);  
	        dest.writeStringList(gradeList);  
	    }  
	      
	    public static final Parcelable.Creator<AllGrade> CREATOR = new Creator<AllGrade>()  
	    	    {  
	    	        public AllGrade createFromParcel(Parcel source)  
	    	        {  
	    	        	
	    	        	AllGrade allGrade = new AllGrade(source.readString(),source.readString());
						//allGrade.term = source.readString();  
	    	        	allGrade.gradeList = source.readStringList(list); 
	    	            return allGrade;  
	    	        }  
	    	        public AllGrade[] newArray(int size)  
	    	        {  
	    	            return new AllGrade[size];  
	    	        }  
	    	    };
	    */		
}
